package processes.createThreadsProcess;

import os.MiniOS;
import os.MiniProcess;
import os.MiniThread;

public class CreateThreadsProcessThread3 extends MiniThread
{

	public CreateThreadsProcessThread3(MiniProcess process, String tid)
	{
		super(process, tid);
		description = "Prints 9999 to 8888";
	}

	@Override
	public void passThreadArguments(Object[] arguments)
	{
	}

	@Override
	public void run()
	{
		System.out.println("Inside Run " + getTid());
		isExcecutionStopped();
		for (int i = 9999; i >= 8888; i--)
		{
			MiniOS.getInstance().outputRequest(this, i + "");
			isExcecutionStopped();
		}
		MiniOS.getInstance().threadTerminated(getProcessId(), getTid());

	}

}
